![]() |
CustomAndroidAPI 1.44
|
Public Member Functions | |
| int | getCharWidth () |
| void | setCharWidth (int charWidth) throws CustomException |
| int | getCharHeight () |
| void | setCharHeight (int charHeight) throws CustomException |
| boolean | getEmphasized () |
| void | setEmphasized (boolean bValue) |
| boolean | getItalic () |
| void | setItalic (boolean bValue) |
| boolean | getUnderline () |
| void | setUnderline (boolean bValue) throws CustomException |
| int | getJustification () |
| void | setJustification (int justification) throws CustomException |
| void | setCharFontType (int charFontType) throws CustomException |
| int | getCharFontType () |
| int | getLineSpacing () |
| void | setLineSpacing (int iValue) throws CustomException |
| void | setInternationalCharSet (int _interCharSet) throws CustomException |
| int | getInternationalCharSet () |
Static Public Attributes | |
| static final int | FONT_SIZE_X1 = 0 |
| static final int | FONT_SIZE_X2 = 1 |
| static final int | FONT_SIZE_X3 = 2 |
| static final int | FONT_SIZE_X4 = 3 |
| static final int | FONT_SIZE_X5 = 4 |
| static final int | FONT_SIZE_X6 = 5 |
| static final int | FONT_SIZE_X7 = 6 |
| static final int | FONT_SIZE_X8 = 7 |
| static final int | FONT_JUSTIFICATION_LEFT = 0 |
| static final int | FONT_JUSTIFICATION_CENTER = 1 |
| static final int | FONT_JUSTIFICATION_RIGHT = 2 |
| static final int | FONT_TYPE_A = 0 |
| static final int | FONT_TYPE_B = 1 |
| static final int | FONT_TYPE_1 = 5 |
| static final int | FONT_TYPE_2 = 6 |
| static final int | FONT_TYPE_3 = 7 |
| static final int | FONT_TYPE_4 = 8 |
| static final int | FONT_TYPE_5 = 9 |
| static final int | LINESPACING_DEFAULT = 64 |
| static final int | FONT_CS_DEFAULT = 0 |
This the container class to hold various font attributes
|
inline |
Returns the font char type
|
inline |
Returns charHeight (FONT_SIZE_X1-FONT_SIZE_X8)
|
inline |
Returns charWidth (FONT_SIZE_X1-FONT_SIZE_X8)
|
inline |
Returns emphasized flag
|
inline |
Returns the international char set
|
inline |
Returns italic flag
|
inline |
Return justification attribute
|
inline |
Returns current line spacing
|
inline |
Returns the underline type
|
inline |
Sets the char font type
| charFontType |
|
| CustomException |
|
inline |
Sets the character height ratio. Min is FONT_SIZE_X1 and Max is FONT_SIZE_X8
| charHeight | height ratio |
|
inline |
Sets the character width ratio. Min is FONT_SIZE_X1 and Max is FONT_SIZE_X8
| charWidth | width ratio |
|
inline |
Set the emphasied flag. Default is false.
| bValue | true to bold/emphasize the text |
|
inline |
Sets the international char set
| _interCharSet | is the codepage value. Ex: 437 for "PC437 - USA"
|
| CustomException |
|
inline |
Sets the italic flag. Default is false.
| bValue | true to make the text italic else false |
|
inline |
Sets the justification attribute
| justification |
|
| CustomException |
|
inline |
Set the line spacing. Please refere to the device command manual for additional info. NOTE: All the values under the font height set line spacing to 0.
| iValue | line spacing |
| CustomException |
|
inline |
Sets the underline attribute. Default is false
| bValue | true to make the text underline else false |
| CustomException |
|
static |
Indicates that the International Charset is Default
|
static |
Indicates that the Font Justification is Center
|
static |
Indicates that the Font Justification is Left
|
static |
Indicates that the Font Justification is Right
|
static |
Indicates that the Font Size is 1X
|
static |
Indicates that the Font Size is 2X
|
static |
Indicates that the Font Size is 3X
|
static |
Indicates that the Font Size is 4X
|
static |
Indicates that the Font Size is 5X
|
static |
Indicates that the Font Size is 6X
|
static |
Indicates that the Font Size is 7X
|
static |
Indicates that the Font Size is 8X
|
static |
Indicates that the Font 1
|
static |
Indicates that the Font 2
|
static |
Indicates that the Font 3
|
static |
Indicates that the Font 4
|
static |
Indicates that the Font 5
|
static |
Indicates that the Font Type is A
|
static |
Indicates that the Font Type is B
|
static |
Indicates the default line spacing